package com.lww.springcloudapi.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.lww.springcloudapi.entity.parent.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 营销活动参数表
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "TabSaleplanpara对象", description = "营销活动参数表")
public class TabSaleplanpara extends ParentEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "营销活动标识（tab_code表codetype=’ SalePlanId’)")
    @TableField("SALEPLANID")
    private String saleplanid;

    @ApiModelProperty(value = "营销活动标识名称")
    @TableField("SALEPLANNAME")
    private String saleplanname;

    @ApiModelProperty(value = "地区编码")
    @TableField("AREAID")
    private String areaid;

    @ApiModelProperty(value = "业务类型")
    @TableField("SVCID")
    private String svcid;

    @ApiModelProperty(value = "参与方式(tab_code表codetype=SrvFun)")
    @TableField("JOINMODE")
    private String joinmode;

    @ApiModelProperty(value = "参数次数")
    @TableField("JOINNUM")
    private Integer joinnum;

    @ApiModelProperty(value = "参与条件1")
    @TableField("JOINPARA1")
    private String joinpara1;

    @ApiModelProperty(value = "参与条件2")
    @TableField("JOINPARA2")
    private String joinpara2;

    @ApiModelProperty(value = "参与条件3（保留）")
    @TableField("JOINPARA3")
    private String joinpara3;

    @ApiModelProperty(value = "活动生效日期")
    @TableField("EFFDATE")
    private Date effdate;

    @ApiModelProperty(value = "活动失效日期")
    @TableField("EXPDATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @JSONField(format = "yyyy-MM-dd")
    private Date expdate;

    @ApiModelProperty(value = "备注")
    @TableField("REMARKS")
    private String remarks;


}
